﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace BTL
{
    public partial class frmMenu : Form
    {
        public frmMenu()
        {
            InitializeComponent();
        }

        private void metroTileItem2_Click(object sender, EventArgs e)
        {
            frmHoaDon _hd = new frmHoaDon();
            _hd.Show();
        }

        private void metroTileItem1_Click(object sender, EventArgs e)
        {
            frmDocGia1 _dg = new frmDocGia1();
            _dg.Show();
        }

        private void metroTileItem4_Click(object sender, EventArgs e)
        {
            frmSachcs _s = new frmSachcs();
            _s.Show();
        }

        private void metroTileItem3_Click(object sender, EventArgs e)
        {
            frmNhanVien _nv = new frmNhanVien();
            _nv.Show();
        }

        private void frmMenu_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyData == Keys.F1)
            {
                frmHelp _help = new frmHelp();
                _help.Show();
            }
        }

        private void metroTilePanel1_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyData == Keys.F1)
            {
                frmHelp _help = new frmHelp();
                _help.Show();
            }
        }
    }
}
